home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / program / multlang.zip / MIMPEXP.PAS < prev    next >
Pascal/Delphi Source File  |  1995-12-14  |  1KB  |  52 lines

  1. unit Mimpexp;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls, Mcombbox, MultLang;
  8.  
  9. type
  10.   TImpExp = class(TForm)
  11.     Label1: TLabel;
  12.     MultLang1: TMultLang;
  13.     Memo1: TMemo;
  14.     Edit1: TEdit;
  15.     Button1: TButton;
  16.     Button2: TButton;
  17.     Label2: TLabel;
  18.     procedure Button1Click(Sender: TObject);
  19.     procedure Button2Click(Sender: TObject);
  20.     procedure FormClose(Sender: TObject; var Action: TCloseAction);
  21.   private
  22.     { Private declarations }
  23.   public
  24.     { Public declarations }
  25.   end;
  26.  
  27. var
  28.   ImpExp: TImpExp;
  29.  
  30. implementation
  31.  
  32. {$R *.DFM}
  33.  
  34. procedure TImpExp.Button1Click(Sender: TObject);
  35. begin
  36.   Memo1.Lines.SaveToFile(Edit1.Text);
  37.   MultLang1.Import(Edit1.Text);
  38. end;
  39.  
  40. procedure TImpExp.Button2Click(Sender: TObject);
  41. begin
  42.   MultLang1.Export(Edit1.Text);
  43.   Memo1.Lines.LoadFromFile(Edit1.Text);
  44. end;
  45.  
  46. procedure TImpExp.FormClose(Sender: TObject; var Action: TCloseAction);
  47. begin
  48.   Action:=caFree;
  49. end;
  50.  
  51. end.
  52.